/**
 * @(#) Beverage.java
 */

package TheRestaurantOwner;

public class Beverage extends MenuItem
{
	private int volume;

	public Beverage( String name, ItemQuality quality, int volume )
	{
		setName(name);
		setQuality(quality);
		this.volume = volume;
	}

	public int getIngredientsCost( ) {
		if (getQuality() == ItemQuality.low){
			return 1;
		}
		return 3;
	}

	public int getVolume( ) {
		return volume;
	}
}
